﻿using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using DG.Tweening.Core;
using UnityEngine;

public class GlobalGameInfo {
    #region 单例
    private static GlobalGameInfo instance;

    private GlobalGameInfo()
    {

    }

    public static GlobalGameInfo GetInstance()
    {
        if (instance == null)
        {
            instance = new GlobalGameInfo();
            //全局初始化
            DotweenInit();
        }
        return instance;
    }

    #endregion

    #region 本局信息
    /// <summary>
    /// 当前游戏技能列表
    /// </summary>
    public List<SkillBase> SkillList;

    /// <summary>
    /// 红方角色
    /// </summary>
    public GameObject RedRole;

    /// <summary>
    /// 蓝方角色
    /// </summary>
    public GameObject BlueRole;

    #endregion

    #region 初始化函数

    /// <summary>
    /// 全局dotween动画曲线设置为线性
    /// </summary>
    private static void DotweenInit()
    {
        DOTween.defaultEaseType = Ease.Linear;
    }

    
    
#endregion

}
